package org.rkuk.kasutil.test.mediaStream 
{
	import org.rkuk.kasutil.test.TestBed;
	import org.rkuk.kasutil.test.TestCase;
	
	/**
	 * @private
	 * @author rkuk
	 */
	[SWF(width="400",height="300")]
	public class MediaStreamTestBed extends TestBed 
	{
		private var streamUrl:String;
		private var connectionCmd:String;
		
		/**
		 * 
		 * @param	streamUrl		url of the .flv file to play, or the name of the stream if FMS used
		 * @param	connectionCmd	the command parameter of NetConnection's connect method
		 */
		public function MediaStreamTestBed(streamUrl:String, connectionCmd:String = null)
		{
			super();
			this.streamUrl = streamUrl;
			this.connectionCmd = connectionCmd;
		}
		
		override protected function createTestCase():TestCase 
		{
			return new MediaStreamTestCase(streamUrl, connectionCmd, this);
		}
	}
}